package com.gitee.ricesugar.mall.model.POJO.DTO;

import java.util.ArrayList;
import java.util.Date;

public class OrderDTO {
    private int id;
    private Date date;
    private ArrayList<CartItemDTO> items;

    public OrderDTO(int id, Date date, ArrayList<CartItemDTO> items) {
        this.id = id;
        this.date = date;
        this.items = items;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public ArrayList<CartItemDTO> getItems() {
        return items;
    }

    public void setItems(ArrayList<CartItemDTO> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "id=" + id +
                ", date=" + date +
                ", items=" + items +
                '}';
    }
}
